#include "mainwindow.h"
#include <QApplication>
#include <QTextCodec>
#include <qfont.h>

#include "myinputpanelcontext.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MyInputPanelContext *ic = new MyInputPanelContext;
    a.setInputContext(ic);
    MainWindow w;
    w.show();
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
//  QFont font("wenquanyi",12,QFont::Bold); //使用wenquanyi字体
//      this->setFont(font);
    return a.exec();
}
